package cn.myjerry.sort.col;

public class Student {
	private final int id;
	private final String name;
	private final double score;
	public Student() {
		this.id = 0;
		this.name = null;
		this.score = 0;
	}
	public Student(int id, String name, double score) {
		super();
		this.id = id;
		this.name = name;
		this.score = score;
	}
	public int getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public double getScore() {
		return score;
	}
	@Override
	public String toString() {
		return "学号："+this.id+"，姓名："+this.name+"，成绩："+this.score+"\n";
	}
}
